package com.wwinsoft.modules.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @author: Tim Chen
 * @since 1.0
 */
public class DateUtils extends org.apache.commons.lang.time.DateUtils{

    public static boolean isOverDue(Date dueDate){
        if(dueDate==null){
            return false;
        }
        Calendar today = Calendar.getInstance();
        today.set(Calendar.HOUR_OF_DAY, 0);
        today.set(Calendar.MINUTE, 0);
        today.set(Calendar.SECOND, 0);
        today.set(Calendar.MILLISECOND, 0);
        return dueDate.compareTo(today.getTime())<0;
    }
}
